package com.xuehu.cloud.service;

import com.xuehu.cloud.service.failback.PaymentFeignFailbackService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author guoweia@cslc.com.cn
 * @createTime 2020/12/2 17:12
 * @description
 */
//@Component
//@FeignClient(value = "XUEHU-PAYMENT-SERVICE", fallback = PaymentFeignFailbackService2.class)
public interface PaymentFeignService2 {
    @GetMapping("/pay/hystrix/ok/{id}")
    public String paymentOk(@PathVariable("id") Long id);

    @GetMapping("/pay/hystrix/timeout/{id}")
    public String paymentTimeout(@PathVariable("id") Long id);
}
